﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ZhimeiSoft.Framework.Client.Base;
using ZhimeiSoft.CharmManager.Client.App;
using ZhimeiSoft.CharmManager.Client.Manager;
using ZhimeiSoft.CharmManager.DOL;

namespace ZhimeiSoft.CharmManager.Client.Forms
{
    public partial class DefaultUserControl : BaseUserControl
    {
        
        public DefaultUserControl()
        {
            InitializeComponent();
        }

        public DefaultUserControl(CharmManagerApp _app) : base(_app) 
        {
            InitializeComponent();
            string sError = "";
            EmployeeEntity ent = new EmployeeEntity();
            ent.EmployeeID = 1;
            ent.EName = "老王";
            ent.EAddress = "";
            ent.EBirthday = DateTime.Now;
            ent.ECard = "";
            ent.ECode = "";
            ent.EEducation = "";
            ent.EEntryDate = DateTime.Now;
            ent.EFamilyPhone = "";
            ent.EIndexCode = "";
            ent.EMobilePhone = "";
            ent.EPassword = "1";
            ent.EQuitDate = DateTime.Now;
            ent.ESalonID = 1;
            ent.EState = "FOE";
            BussinessProxyManager.Instance.InsertEmployee(ent, out sError);
        }
    }
}
